package org.example.myleet.p978;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(5 == solution.maxTurbulenceSize(new int[]{9,4,2,10,7,8,8,1,9}));
        Assert.isTrue(2 == solution.maxTurbulenceSize(new int[]{4,8,12,16}));
        Assert.isTrue(1 == solution.maxTurbulenceSize(new int[]{100}));
        Assert.isTrue(1 == solution.maxTurbulenceSize(new int[]{9,9}));
        Assert.isTrue(8 == solution.maxTurbulenceSize(new int[]{0,8,45,88,48,68,28,55,17,24}));
    }
}
